package com.baizhi.service;

import com.baizhi.dao.AudioDao;
import com.baizhi.entrty.Audio;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AudioServiceImpl implements AudioService {
    @Autowired
    private AudioDao ad;
    @Override
    public List<Audio> getTree() {
        return ad.getTree();
    }

        @Override
        public void insert(Audio audio) {
        ad.insert(audio);
    }
}
